<a name="comment_form"></a>
<h1>Add Your Comment</h1>

<%= error_messages_for :comment %>

<% form_for(:comment, :url => comments_path(params[:entry_id])) do |f| %>
  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Comment</b><br />
    <%= f.text_area :content %>
  </p>

  <p>
    <b>Your Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Your Email</b><br />
    <%= f.text_field :email %>
  </p>

  <p>
    <b>Your Url</b><br />
    <%= f.text_field :url %>
  </p>

  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>

<%= link_to 'Back', comments_path %>